package com.sise.service.impl;

import com.sise.dto.RpcRespDTO;
import com.sise.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * @author idea
 * @data 2019/6/4
 */
@Service(value = "userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private RedisTemplate<String,String> redisTemplate;

    @Override
    public RpcRespDTO filter(String word) {
        System.out.println("过滤信息");
        redisTemplate.opsForValue().set("key",word);
        return new RpcRespDTO().buildSuccessResp(word);
    }


}
